#include <iostream>
#include <memory>
#include <string>
#include "EpollServer.hpp"
using namespace std;

int main(int argc, char* argv[])
{
    if(argc != 2)
    {
        cout << "Incorrect use, correct use: " << argv[0] << " port" << endl;
        return 1;
    }

    unique_ptr<EpollServer> svr(new EpollServer());
    
    svr->Init();
    svr->Loop();

    return 0;
}